package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消耗信息业务对象 collect_dosage
 *
 * @author zyb
 * @date 2023-09-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CollectDosageBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long pkId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentPkId;

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long id;

    /**
     * 盘信息的ID
     */
    @NotNull(message = "盘信息的ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long piece;

    /**
     * 料仓名
     */
    @NotBlank(message = "料仓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storage;

    /**
     * 原料名
     */
    @NotBlank(message = "原料名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String material;

    /**
     * 原材料规格
     */
    @NotBlank(message = "原材料规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spec;

    /**
     * 含水率
     */
    @NotNull(message = "含水率不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long watFull;

    /**
     * 配方值
     */
    @NotNull(message = "配方值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long recAmnt;

    /**
     * 设定值
     */
    @NotNull(message = "设定值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long planAmnt;

    /**
     * 实际用量
     */
    @NotNull(message = "实际用量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long factAmnt;

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String flag;


}
